package sddz.foodmanage.model;

import java.io.Serializable;
import java.util.List;

/**
 * @Date:2019/7/6
 * @Author:lbb
 * 商品数据
 */

public class CommodityBean implements Serializable{


    /**
     * message : 成功
     * status_code : 200
     * data : {"total":1,"current_page":1,"page_size":10,"total_page":1,"data":[{"id":190,"name":"苹果","classification_id":6,"imgs":[{"url":"/storage/users/75/imgs/190/881562665090.jpg"},{"url":"/storage/users/75/imgs/190/431562665090.png"},{"url":"/storage/users/75/imgs/190/451562665090.jpg"}],"apiImgs":[{"url":"http://zjh.natapp1.cc/storage/users/75/imgs/190/881562665090.jpg"},{"url":"http://zjh.natapp1.cc/storage/users/75/imgs/190/431562665090.png"},{"url":"http://zjh.natapp1.cc/storage/users/75/imgs/190/451562665090.jpg"}],"unit":"kg","price":12,"status":1,"user_id":75,"num":0,"created_at":"2019-07-09 17:38:27","updated_at":"2019-07-09 17:38:27","c_name":"水果类及制品"}]}
     */

    private String message;
    private int status_code;
    private DataBeanX data;

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public int getStatus_code() {
        return status_code;
    }

    public void setStatus_code(int status_code) {
        this.status_code = status_code;
    }

    public DataBeanX getData() {
        return data;
    }

    public void setData(DataBeanX data) {
        this.data = data;
    }

    public static class DataBeanX {
        /**
         * total : 1
         * current_page : 1
         * page_size : 10
         * total_page : 1
         * data : [{"id":190,"name":"苹果","classification_id":6,"imgs":[{"url":"/storage/users/75/imgs/190/881562665090.jpg"},{"url":"/storage/users/75/imgs/190/431562665090.png"},{"url":"/storage/users/75/imgs/190/451562665090.jpg"}],"apiImgs":[{"url":"http://zjh.natapp1.cc/storage/users/75/imgs/190/881562665090.jpg"},{"url":"http://zjh.natapp1.cc/storage/users/75/imgs/190/431562665090.png"},{"url":"http://zjh.natapp1.cc/storage/users/75/imgs/190/451562665090.jpg"}],"unit":"kg","price":12,"status":1,"user_id":75,"num":0,"created_at":"2019-07-09 17:38:27","updated_at":"2019-07-09 17:38:27","c_name":"水果类及制品"}]
         */

        private int total;
        private int current_page;
        private int page_size;
        private int total_page;
        private List<DataBean> data;

        public int getTotal() {
            return total;
        }

        public void setTotal(int total) {
            this.total = total;
        }

        public int getCurrent_page() {
            return current_page;
        }

        public void setCurrent_page(int current_page) {
            this.current_page = current_page;
        }

        public int getPage_size() {
            return page_size;
        }

        public void setPage_size(int page_size) {
            this.page_size = page_size;
        }

        public int getTotal_page() {
            return total_page;
        }

        public void setTotal_page(int total_page) {
            this.total_page = total_page;
        }

        public List<DataBean> getData() {
            return data;
        }

        public void setData(List<DataBean> data) {
            this.data = data;
        }

        public static class DataBean implements Serializable {
            /**
             * id : 190
             * name : 苹果
             * classification_id : 6
             * imgs : [{"url":"/storage/users/75/imgs/190/881562665090.jpg"},{"url":"/storage/users/75/imgs/190/431562665090.png"},{"url":"/storage/users/75/imgs/190/451562665090.jpg"}]
             * apiImgs : [{"url":"http://zjh.natapp1.cc/storage/users/75/imgs/190/881562665090.jpg"},{"url":"http://zjh.natapp1.cc/storage/users/75/imgs/190/431562665090.png"},{"url":"http://zjh.natapp1.cc/storage/users/75/imgs/190/451562665090.jpg"}]
             * unit : kg
             * price : 12
             * status : 1
             * user_id : 75
             * num : 0
             * created_at : 2019-07-09 17:38:27
             * updated_at : 2019-07-09 17:38:27
             * c_name : 水果类及制品
             */

            private int id;
            private String name;
            private int classification_id;
            private String unit;
            private Double price;

            public Double getPrice() {
                return price;
            }

            public void setPrice(Double price) {
                this.price = price;
            }

            private int status;
            private int user_id;
            private String num;

            public String getNum() {
                return num;
            }

            public void setNum(String num) {
                this.num = num;
            }

            private String created_at;
            private String updated_at;
            private String c_name;
            private List<ImgsBean> imgs;
            private List<ApiImgsBean> apiImgs;

            public int getId() {
                return id;
            }

            public void setId(int id) {
                this.id = id;
            }

            public String getName() {
                return name;
            }

            public void setName(String name) {
                this.name = name;
            }

            public int getClassification_id() {
                return classification_id;
            }

            public void setClassification_id(int classification_id) {
                this.classification_id = classification_id;
            }

            public String getUnit() {
                return unit;
            }

            public void setUnit(String unit) {
                this.unit = unit;
            }


            public int getStatus() {
                return status;
            }

            public void setStatus(int status) {
                this.status = status;
            }

            public int getUser_id() {
                return user_id;
            }

            public void setUser_id(int user_id) {
                this.user_id = user_id;
            }



            public String getCreated_at() {
                return created_at;
            }

            public void setCreated_at(String created_at) {
                this.created_at = created_at;
            }

            public String getUpdated_at() {
                return updated_at;
            }

            public void setUpdated_at(String updated_at) {
                this.updated_at = updated_at;
            }

            public String getC_name() {
                return c_name;
            }

            public void setC_name(String c_name) {
                this.c_name = c_name;
            }

            public List<ImgsBean> getImgs() {
                return imgs;
            }

            public void setImgs(List<ImgsBean> imgs) {
                this.imgs = imgs;
            }

            public List<ApiImgsBean> getApiImgs() {
                return apiImgs;
            }

            public void setApiImgs(List<ApiImgsBean> apiImgs) {
                this.apiImgs = apiImgs;
            }

            public static class ImgsBean  implements Serializable{
                /**
                 * url : /storage/users/75/imgs/190/881562665090.jpg
                 */

                private String url;

                public String getUrl() {
                    return url;
                }

                public void setUrl(String url) {
                    this.url = url;
                }
            }

            public static class ApiImgsBean implements Serializable {
                /**
                 * url : http://zjh.natapp1.cc/storage/users/75/imgs/190/881562665090.jpg
                 */

                private String url;

                public String getUrl() {
                    return url;
                }

                public void setUrl(String url) {
                    this.url = url;
                }
            }
        }
    }
}
